package com.huang.tiger.utils;

import cn.hutool.core.util.StrUtil;

public class StringUtils {



    public static Boolean isNotBlank(CharSequence str){
        return StrUtil.isNotBlank(str);
    }

    public static Boolean isBlank(CharSequence str){
        return StrUtil.isBlank(str);
    }

    public static Boolean isNull(CharSequence str){
        return ObjectUtils.isNull(str);
    }

    public static Boolean isNotNull(CharSequence str){
        return ObjectUtils.isNotNull(str);
    }

    public static Boolean isNotBlankAndNotNull(CharSequence str){
        return isNotBlank(str) && isNotNull(str);
    }

    public static Boolean isBlankOrNull(CharSequence str){
        return isBlank(str) || isNull(str);
    }

    public static String reverse(String sourceStr){
        StringBuilder sb = new StringBuilder(sourceStr);
        return sb.reverse().toString();
    }

}
